package com.itheima.manager;

import com.itheima.domain.CmsSubject;
import com.itheima.service.CmsSubjectService;
import com.itheima.util.PageBean;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class CmsSubjectManager {

    @DubboReference
    CmsSubjectService cmsSubjectService;

    public List<CmsSubject> list() {
        return cmsSubjectService.list();
    }

    public PageBean pageInfo(String keyword, Integer pageNum, Integer pageSize) {
        return cmsSubjectService.pageInfo(keyword,pageNum,pageSize);
    }
}
